package com.fr.web;

import com.fr.report.ResultWorkBook;
import com.fr.web.core.SessionIDInfor;
import com.fr.web.core.ShowWorkBookPolicy;
import com.fr.web.core.WebUtils;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;

public abstract class Resultlet
  implements Weblet
{
  public SessionIDInfor createSessionIDInfor(HttpServletRequest paramHttpServletRequest, String paramString, Map paramMap)
    throws ReportletException
  {
    return new SessionIDInfor(paramString, paramMap, createReport(AbstractReportletRequest.getInstance(paramHttpServletRequest)), WebUtils.getReportTitleFromRequest(paramHttpServletRequest), ShowWorkBookPolicy.getInstance(paramHttpServletRequest, this));
  }

  public abstract ResultWorkBook createReport(ReportletRequest paramReportletRequest)
    throws ReportletException;
}